﻿/*--------------------------------------------------

    多文档活动视图改变脚本
    
	author			柴瑞
	created			2006-01-17  18:10
	updated			2006-01-17
	updateCount     1

	email			chairui1979@hotmail.com
	website			http://chairui.openfree.net


--------------------------------------------------*/

var lastActiveViewIndex;

//
//  ActiveViewIndex：当前活动能的视图，MultiViewContentCount：全部视图的个数。
//
function ActiveViewChanged(ActiveViewIndex,MultiViewContentCount)
{
    for(i=0; i< MultiViewContentCount ; i++)
    {
	    if (i==ActiveViewIndex)
	    {
		    document.getElementById("MultiViewContent"+ActiveViewIndex).style.display = "";
		    document.getElementById("MultiViewItem"+ActiveViewIndex).style.background = "#e6eef7";
		    document.getElementById("ctl00_contentPlaceHolderID_tbSearchType").value = ActiveViewIndex;
	    }
	    else
	    {
		    document.getElementById("MultiViewContent"+i).style.display = "none";
		    document.getElementById("MultiViewItem"+i).style.background = "#f2f7fb";//"Transparent";
	    }
    }
}

